package com.ruoyi.work.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @Author: MMDZ
 * @Desc: TODO 人力成本
 */
public class WorkCost extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 人力成本ID */
    private Long costId;

    /** 人员id */
    private Long userId;
    @Excel(name = "工号")
    private String userName;
    @Excel(name = "姓名")
    private String nickName;
    /** 人员信息 */
    private SysUser user;

    /** 部门 */
    @Excel(name = "部门")
    private String deptName;

    /** 岗位 */
    private String postName;

    /** 职级职等 */
    private String level;

    /** 周薪资 */
    @Excel(name = "周薪资")
    private BigDecimal weekPay;

    /** 日薪资 */
    @Excel(name = "日薪资")
    private BigDecimal dayPay;

    /** 时薪资 */
    @Excel(name = "时薪资")
    private BigDecimal hourPay;

    public Long getCostId() {
        return costId;
    }

    public void setCostId(Long costId) {
        this.costId = costId;
    }

    @NotNull(message = "人员不能为空")
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public SysUser getUser() {
        return user;
    }

    public void setUser(SysUser user) {
        this.user = user;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getPostName() {
        return postName;
    }

    public void setPostName(String postName) {
        this.postName = postName;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public BigDecimal getWeekPay() {
        return weekPay;
    }

    public void setWeekPay(BigDecimal weekPay) {
        this.weekPay = weekPay;
    }

    public BigDecimal getDayPay() {
        return dayPay;
    }

    public void setDayPay(BigDecimal dayPay) {
        this.dayPay = dayPay;
    }

    public BigDecimal getHourPay() {
        return hourPay;
    }

    public void setHourPay(BigDecimal hourPay) {
        this.hourPay = hourPay;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("costId", getCostId())
                .append("userId", getUserId())
                .append("level", getLevel())
                .append("weekPay", getWeekPay())
                .append("dayPay", getDayPay())
                .append("hourPay", getHourPay())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
